export interface IDParams {
    id?: number
    role_id?: number
    user_id?: number
}

//菜单折叠项
export interface MenuDir {
    id: number
    path: string
    icon: string
    label: string
    items: MenuItem[]
    sort: number
}

//菜单项，实际页面
export interface MenuItem {
    id: number
    menu_dir_id: number
    path: string
    icon: string
    label: string
    title: string
    sort: number
    role_menu_item?: boolean
}

export interface User {
    id: number
    created_at: number
    username: string
    lock: number
    profile?: Profile
    vip: number
    admin_name: string
}

export interface Profile {
    id: number
    updated_at: number
    role_id: number
    role?: Role
    coin: number
}

export interface Role {
    id: number
    key: string
    name: string
}

export interface CoinHistory {
    id: number
    created_at: number
    user_id: number
    coin: number
    type: number
    intro: string
    cmd_user_id: number
}

export interface RegisterCode {
    id: number
    created_at: number
    role_id: number
    user_id: number
    code: string
    register_at: number
    cmd_user_id: number
}

export interface Product{
    key:string
    name:string
    intro:string
    vip_1:number
    vip_2:number
    vip_3:number
    vip_4:number
    vip_5:number
    vip_6:number
}